import QtQuick
import QtQuick.Controls
import Drillingrig

Button{
    id: control
    width: 140
    height: 38
    text: "text"
    FontLoader{
        id: boldFont
        source:"fonts/SourceHanSansCN-Bold.otf"
    }
    background: Rectangle{
        color: "transparent"
        Image{
           anchors.fill: parent
           source: control.hovered || control.checked ? "images/tabbar-button-hovered.png" : "images/tabbar-button-normal.png"
        }
    }
    contentItem: Item{
        Text{
            anchors.fill: parent
            color: control.hovered || control.checked ?"#FFFFFF" : "#CEDCE6"
            font.family: boldFont.name
            font.pixelSize: 18
            horizontalAlignment: Text.AlignHCenter
            verticalAlignment: Text.AlignVCenter
            font.bold: false
            font.weight: Font.Medium
            text: control.text

        }
    }
}
